<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="bolao" />
    <g:set var="entityName" value="${message(code: 'role.label', default: 'Role')}" />
    <title><g:message code="default.create.label" args="[entityName]" /></title>
  </head>
  <body>
    <div class="body">
      <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
      </g:if>
      <g:hasErrors bean="${role}">
        <div class="errors">
          <g:renderErrors bean="${role}" as="list" />
        </div>
      </g:hasErrors>
      <g:form action="save">
        <div class="dialog">
        <fieldset>
          <legend><g:message code="default.create.label" args="[entityName]" /></legend>
          <table>
            <tbody>
              <tr class="prop">
                <td valign="top" class="name"><label for="code"><g:message code="role.code.label"/>:</label></td>
                <td valign="top" class="value ${hasErrors(bean:role,field:'code','errors')}">
                  <input type="text" id="code" name="code" value="${role?.code?.encodeAsHTML()}"/>
                </td>
              </tr>
              <tr class="prop">
                <td valign="top" class="name"><label for="description"><g:message code="role.description.label"/>:</label></td>
                <td valign="top" class="value ${hasErrors(bean:role,field:'description','errors')}">
                  <input type="text" id="description" name="description" value="${role?.description?.encodeAsHTML()}"/>
                </td>
              </tr>
            </tbody>
          </table>
        </fieldset>
        </div>
        <div class="buttons">
          <span class="button"><input class="save" type="submit" value="${message(code:'global.create')}" /></span>
        </div>
      </g:form>
    </div>
  </body>
</html>